package com.cskaoyan.day30.work1._01isingleton;

public class MySingleton5 {
    private MySingleton5(){

    }
    public static MySingleton5 getInstance(){
        return Inner.innerMethod();
    }

    static class Inner{
        private static MySingleton5 mySingleton5;
        static {
            mySingleton5 = new MySingleton5();
        }
        public static MySingleton5 innerMethod(){
            return mySingleton5;
        }
    }
}
